<!--
 * @Author: zhangweinan
 * @Date: 2022-11-23 11:00:29
 * @LastEditors: zhangweinan
 * @LastEditTime: 2022-11-29 10:50:26
 * @Description: file content
 * @FilePath: \front-end-of-task-center\src\views\tokenTest\index.vue
-->
<template>
  <div>
    <h1>{{ token }}</h1>
  </div>
</template>
<script>
import { getEnterpriseTokenByUserInfo } from "@/api/enterprise/info.js";
import { setTenantId, setToken } from "@/utils/auth";
export default {
  data() {
    return {
      token: "",
    };
  },
  mounted() {
    this.token = this.$route.query;
    //设置token
    debugger;
    setToken(this.token.token);
    // 设置租户
    setTenantId(this.token.tenantId);
    getEnterpriseTokenByUserInfo().then((res) => {
      debugger;
    });
  },
};
</script>
